home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Logoff Options 1.xpl < prev    next >
Text File  |  1999-06-12  |  1KB  |  56 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Network\Logoff"
  5. "NAME"="Windows 9x Logoff Options"
  6. "VERSION"="1.1"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Show "Restart in MS-DOS mode" in logoff menu"
  9. "DESCRIPTION 1"="If you want to hide the selection to restart in MS-DOS mode, deactivate the first option."
  10. "DESCRIPTION 2"="This setting only applies to Windows 95/98 computers."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16.  
  17. sNRM="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WinOldApp\NoRealMode" 'DWORD
  18.  
  19. Sub Plugin_Initialize 
  20.  If GetWinVer=1 or GetWinVer=3 then
  21.  
  22.   i=RegReadValue(sNRM)
  23.   if i=0 or IsEmpty(i) then
  24.    SetUIElement 1,true
  25.   end if
  26.  
  27.  else
  28.   Disable
  29.  end if
  30. End Sub
  31.  
  32.  
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36.  
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  b=GetUIElement(1)
  40.  if b=true then
  41.   Call RegWriteValue(sNRM,0,2)
  42.  else
  43.   Call RegWriteValue(sNRM,1,2)
  44.  end if
  45.  
  46.  
  47.  Restart
  48. End Sub
  49.  
  50.  
  51. Sub Plugin_Terminate 
  52. End Sub
  53.  
  54.  
  55.  
  56.